<%@ Reference Control="~/Controls/PagingControl.ascx" %>
<%@ Page language="vb" EnableViewStateMac="true" Inherits="_2bMatesSite.view_favorite_users" CodeFile="view_favorite_users.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<%@ Register tagprefix="Pager" Tagname="DataGridPager" Src="Controls/PagingControl.ascx" %>
<form id="_Form1" method="post" runat="server">
	<table height="100%" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
		<tr>
			<td class="page_title"><asp:label id="lblTitle" runat="server">Favourite Users</asp:label></td>
		</tr>
		<tr>
			<td class="main_table_border" vAlign="top" height="100%">
				<div class="content">
					<asp:label id="lblNoFavUsers" runat="server" Visible="False" cssclass="main_text">You have no favourite users.</asp:label>
					<asp:table id="tblFavUsers" runat="server" cellspacing=0 cellpadding=0 cssclass="main_text" width="100%">
					<asp:TableRow VerticalAlign="Top">
						<asp:TableCell VerticalAlign="Top">
							<table cellSpacing="0" cellPadding="0" width="100%" border="0" class="main_text">
								<tr>
									<td vAlign="top" align="left" class="small">
										<Pager:DataGridPager runat="server" ID="dgPagerUp"></Pager:DataGridPager>
									</td>
								</tr>
								<tr>
									<td align="left">
										<ASP:DATAGRID id="dgFavUsers" runat="server" Width="100%" CssClass="search_results_table" AutoGenerateColumns="False"
											GridLines="None" AllowPaging="True" AllowCustomPaging="True" PagerStyle-Mode="NumericPages"
											PagerStyle-HorizontalAlign="Right" CellPadding="0" AllowSorting="True" Visible="True">
											<ItemStyle CssClass="data_grid" VerticalAlign="Top"></ItemStyle>
											<headerstyle cssclass="search_results_header"></HeaderStyle>
											<Columns>
												<asp:TemplateColumn HeaderText="User">
													<headerstyle height="20px" width="20%" cssclass="search_results_header"></HeaderStyle>
													<itemstyle cssclass="search_results_img" horizontalalign=center></itemstyle>
													<ItemTemplate>
														<asp:hyperlink id=lbUser runat="server" Font-Bold="True" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "URL") %>' cssclass="main_text_bold">
															<%# DataBinder.Eval(Container.DataItem, "Name") %>
														</asp:hyperlink>
														<BR>
														<asp:hyperlink id=hlUserImage runat="server" CssClass="small_image" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "UserImg") %>' NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "URL") %>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "LongName") %>'><%# DataBinder.Eval(Container.DataItem, "Name") %></asp:hyperlink>
														<img src="images/spacer.gif" height="3" width="1"><br>
														<asp:image id="imgOnline" runat="server" imageurl='<%# DataBinder.Eval(Container.DataItem, "OnlineImg") %>' >
														</asp:image>
													</ItemTemplate>
												</asp:TemplateColumn>
												<asp:TemplateColumn HeaderText="Personal Info">
													<headerstyle height="20px" width="60%" cssclass="search_results_header"></HeaderStyle>
													<itemstyle cssclass="search_results_info"></itemstyle>
													<ItemTemplate>
														<asp:label id="lblName" runat="server" Font-Bold="True">
															<%# DataBinder.Eval(Container.DataItem, "LongName") %>
														</asp:label>
														<BR>
														<BR>
														<asp:label id="Label1" runat="server" Font-Bold="True">Gender:</asp:label>
														<asp:label id="lblGender" runat="server">
															<%# DataBinder.Eval(Container.DataItem, "Gender") %>
														</asp:label>
														<br>
														<asp:label id="Label2" runat="server" Font-Bold="True">Status:</asp:label>
														<asp:label id="lblStatus" runat="server">
															<%# DataBinder.Eval(Container.DataItem, "MStatus") %>
														</asp:label>
														<br>
														<asp:label id="lblAge" runat="server" Font-Bold="True">Age:</asp:label>
														<asp:label id="lblAgeValue" runat="server">
															<%# DataBinder.Eval(Container.DataItem, "Age") %>
														</asp:label>
														<br>
														<asp:label id="lblLocation" runat="server" Font-Bold="True">Location:</asp:label>
														<asp:label id="lblLocationValue" runat="server">
															<%# DataBinder.Eval(Container.DataItem, "Location") %>
														</asp:label>
														<BR>
														<BR>
														<asp:label id="Label4" runat="server">
															<B>Interested in Meeting People for:</B></asp:label>
														<BR>
														<asp:label id="lblMeetPeopleFor" runat="server">
															<%# DataBinder.Eval(Container.DataItem, "MeetPeopleFor") %>
														</asp:label>
														<br>
														<br>
														<asp:label id="lblProfileUpdated" runat="server" Font-Bold="True">Profile Updated: </asp:label>
														<asp:label id="lblProfileUpdatedValue" runat="server">
															<%# DataBinder.Eval(Container.DataItem, "ProfileUpdated") %>
														</asp:label>
													</ItemTemplate>
												</asp:TemplateColumn>
												<asp:TemplateColumn HeaderText="Actions">
													<headerstyle height="20px" width="20%" cssclass="search_results_header"></HeaderStyle>
													<itemstyle cssclass="user_links"></ItemStyle>
													<ItemTemplate>
														<asp:hyperlink id="hlAddToFriends" runat="server" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "AddToFriendsLink") %>'  cssclass="main_text_bold">Add to Friends</asp:hyperlink>
														<br>
														<asp:hyperlink id="hlSendMessage" runat="server" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "SendMessageLink") %>'  cssclass="main_text_bold">Send a Message</asp:hyperlink>
														<br>
														<asp:hyperlink id="hlForwardToFriend" runat="server" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "ForwardToFriendLink") %>'  cssclass="main_text_bold">Forward to a Friend</asp:hyperlink>
														<br>
														<asp:hyperlink id="hlAddComment" runat="server" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "AddCommentsLink") %>'  cssclass="main_text_bold">Add Comments</asp:hyperlink>
														<br>
														<asp:hyperlink id="hlBlockUser" runat="server" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "BlockUserLink") %>'  cssclass="main_text_bold">Block User</asp:hyperlink>
														<br>
														<asp:linkbutton id="hlRemove" runat="server" CommandName="Remove" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "UserID") %>'  cssclass="main_text_bold">Remove</asp:linkbutton>
													</ItemTemplate>
												</asp:TemplateColumn>
											</Columns>
											<PagerStyle VerticalAlign="Top" Visible="False" HorizontalAlign="Right" Mode="NumericPages"></PagerStyle>
										</ASP:DATAGRID>
									</td>
								</tr>
								<tr>
									<td vAlign="top" align="left" class="small">
										<Pager:DataGridPager runat="server" ID="dgPager"></Pager:DataGridPager>
									</td>
								</tr>
							</table>
						</asp:TableCell>
					</asp:TableRow>
				</asp:table>
				</div>			
			</td>
		</tr>
	</table>
</form>
